<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;


class AdminUser extends Model
{
    protected $table = 'admin_user';
    public $timestamps = false;
    protected $fillable = ['name','password','last_ip','last_at','remember_token','update_at','create_at','groupid'];
    // public function checkAdminUser($params){
    // 	$uid = $this->where($params)->value('id');
    // 	return $uid;
    // }

    public function updateAdminUser($uid,$change){
    	$row = $this->where('id', $uid)->update($change);
    	return $row;
    }
}
